require 'config/boot'
require 'config/environment'
require 'lib/morphological_analysed_text_encoder'

text = ENV['text']

task :regist do
  MorphologicalAnalysedTextEncoder.init
  File.open(text).each do |line|
    line.strip!
    MorphologicalAnalysedTextEncoder.cashe(line)
  end
end